package com.zpf;


import com.zpf.filter.PreZuulFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName: GatewayZuulFilterApplication
 * @Description: Zuul 服务 API 网关微服务之代理与反向代理
 * @Autor: ZPF
 * @Date: 2021/1/15 11:06
 **/
@SpringBootApplication
@EnableZuulProxy
public class GatewayZuulFilterApplication {

    @Bean
    public PreZuulFilter preZuulFilter() {
        return new PreZuulFilter();
    }

    public static void main(String[] args) {
        SpringApplication.run(GatewayZuulFilterApplication.class, args);
        System.out.println("【GatewayZuulFilter微服务】已启动.");
    }
}